﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Edit.aspx.cs" Inherits="admin_tour_food_Edit" %>

<%= StyleInclude("style.css") %>

<div class="frombox datagrid-body" style="padding-bottom:5px;">
    <form id="food-model" method="post">
        <table class="datagrid-btable" border="0" cellspacing="0" cellpadding="0" width="100%">
            <tr class="datagrid-row">
                <td class="th">
                    <div class="datagrid-cell">美食名称</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input name="Name" class="easyui-textbox" data-options="required:true" value="<%= model.Name %>" />
                    </div>
                </td>
                <td class="rth">
                    <div class="datagrid-cell">美食价格
                    </div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input name="Price" class="easyui-textbox" style="width:114px;" value="<%= model.Price %>" />
                    </div>
                </td>
                <td class="rth">
                    <div class="datagrid-cell">美食类型</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input name="Type" class="easyui-textbox" style="width:114px;" value="<%= model.Type %>" />
                    </div>
                </td>
            </tr>
            <tr class="datagrid-row">
                <td class="th">
                    <div class="datagrid-cell">美食图片</div>
                </td>
                <td class="td" colspan="5">
                    <div class="datagrid-cell">
                        <div id="food-imgbox" class="food-imgbox fn-clear">
                            <%= FoodImgs(model.ID) %>
                        </div>
                        <div>
                            <%= ToolButton("icon-graphy", "上传图片", "Food.Upload")
                            + ToolButton("icon-chartline", "批量上传", "Food.Batch")
                            + ToolButton("icon-pictures", "设置封面", "Food.Front")
                            + ToolButton("icon-left", "图片前移", "Food.ImgPrev")
                            + ToolButton("icon-right", "图片后移", "Food.ImgNext")
                            + ToolButton("icon-no", "删除图片", "Food.ImgDelete")
                            + ToolButton("icon-cancel", "全部删除", "Food.ImgClear") %>
                        </div>
                        <input id="food-images" name="Images" type="hidden" />
                    </div>
                </td>
            </tr>
            <tr class="datagrid-row">
                <td class="text" colspan="6">
                    <div class="datagrid-cell">
                        <textarea id="food-content" name="Content"><%= model.Content %></textarea>
                    </div>
                </td>
            </tr>
        </table>
        <input name="ID" type="hidden" value="<%= model.ID %>" />
        <input name="InsertTime" type="hidden" value="<%= model.InsertTime %>" />
        <input name="UpdateTime" type="hidden" value="<%= model.UpdateTime %>" />
    </form>
</div>